@import "../../style/constant.scss";

.login-modal-container{
  @include positionFixed();
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,0.6);
  visibility: hidden;
  opacity: 0;
  transition: all .3s linear;
  z-index: 999;
  &.show{
    visibility: visible;
    opacity: 1;
  }
  .modal{
    box-sizing: border-box;
    width: 343px;
    height: 338px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-171px, -169px);
    border-radius: 8px;
    background-color: #fff;;
    padding-top: 60px;
    padding-bottom: 27px;
    .input-container{
      margin-top: 20px;
      margin-left: 0;
      margin-right: 0;
    }
    .countdown{
      align-items: flex-start;
    }
    .btn-get-code{
      display: flex;
      height: 32px;
      border-radius: 5px;
      @include border(top left bottom right, 1px, solid, #96E4C0);
      padding: 5px 8px;
      line-height: 22px;
      align-items: flex-start;
      &.btn-invalid {
        @include border(top left bottom right, 1px, solid, $weaker);
      }
    }
    .count{
      color: $weaker;
      height: 22px;
      line-height: 22px;
    }
    .text-get-code{
      color: #47C690;
      &.invalid {
        color: $weaker;
      }
    }
  }
  .modal-header{
    box-sizing: border-box;
    border-radius: 16px;
    height: 137px;
    width: 323px;
    background: url($loginModal) no-repeat;
    background-size: 100% 100%;
    margin-left: 10px;
    margin-right: 10px;
    padding-left: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    top: -80px;
    z-index: 1;
    box-shadow: 0 6px 0px #ECFCF5;
  }
  .login-title-container{
    height: 33px;
    line-height: 33px;
  }
  .login-title{
    color: #fff;
    font-size: 24px;
    line-height: 33px;
    font-weight: 600;
  }
  .login-desc-container{
    margin-top: 8px;
    height: 20px;
    line-height: 20px;
  }
  .phone_tips{
    color: #fff;
    font-size: 14px;
    line-height: 20px;
  }
  .close-btn{
    width: 28px;
    height: 28px;
    position: absolute;
    bottom: -48px;
    left: 50%;
    transform: translateX(-14px);
    z-index: 9;
  }
  .close-btn-img{
    width: 28px;
    height: 28px;
  }
  .login-form{
    padding: 0 16px;
  }
  .login-btn{
    box-sizing: border-box;
    height: 44px;
    border-radius: 4px;
    margin: 36px 0 14px 0;
    padding: 0;
    display: flex;
    color: #fff;
    background-color: $theme;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    &:after{
      border:none;
    }
    &:active {
      color: #fff;
    }
    &[disabled]{
      opacity: 0.3;
    }
  }
  .agree-container{
    margin-top: 14px;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    padding-left: 42px;
  }
  .agree-icon{
    width: 14px;
    height: 14px;
    margin-right: 5px;
  }
  .agree-text{
    font-size: 12px;
    color: $primaryBlack;
    height: 18px;
    line-height: 18px;
  }
  .agree-link{
    color: $theme;
    margin: 0 3px;
  }
}
